package com.reportes;

import clasesGraficas.VentasN1;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class Reporte_Evolutivo extends Activity {
	private String subtipo;
	/**
	 * @see android.app.Activity#onCreate(Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		subtipo= this.getIntent().getExtras().getString("subTipo");
		super.onCreate(savedInstanceState);
		// TODO Put your code here
		setContentView(R.layout.reporte_evolutivo);
		
		Resources res = getResources();
		/*Drawable myImage = res.getDrawable(R.drawable.background);		
		ActionBar actionBar = this.getActionBar();
		actionBar.setBackgroundDrawable(myImage);
		actionBar.setDisplayUseLogoEnabled(true);
		actionBar.setDisplayShowTitleEnabled(false);*/
		
	}
	
	/*protected void onStart(){
		super.onStart();
		ActionBar ab = this.getActionBar();
		ab.
	}*/
	
	
	@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.menuprincipal, menu);
        return true;
    }
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
	    // Handle item selection
	    switch (item.getItemId()) {
	        case R.id.logout:
	        	Intent logo = new Intent(this,login.class);
	        	startActivity(logo);
	            return true;
	        case R.id.ventas:
	        	Intent ventas = new Intent(this,login.class);
	        	startActivity(ventas);
	            return true;
	        case R.id.consultas:
	        	Intent consultas = new Intent(this,login.class);
	        	startActivity(consultas);
	            return true;
	        case R.id.cancelaciones:
	        	Intent cancelaciones = new Intent(this,Reporte_Cancelaciones.class);
	        	startActivity(cancelaciones);
	            return true;
	        case R.id.evolutivo:
	        	Intent evolutivo = new Intent(this,csmmm.class);
	        	startActivity(evolutivo);
	            return true;
	        default:
	            return super.onOptionsItemSelected(item);
	    }
	}
	
	
}
